home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / lightwave / lwmlist / 95.lightwave-10 / 000968_owner-lightwav…mail.webcom.com_Tue Oct 17 01:13:28 1995.msg < prev    next >
Internet Message Format  |  1995-11-07  |  2KB

  1. Received: by mail.webcom.com
  2.     (1.37.109.15/16.2) id AA293527608; Tue, 17 Oct 1995 01:13:28 -0700
  3. Return-Path: <owner-lightwave@mail.webcom.com>
  4. Received: from access4.digex.net by mail.webcom.com with ESMTP
  5.     (1.37.109.15/16.2) id AA293467603; Tue, 17 Oct 1995 01:13:23 -0700
  6. Received: (from erniew@localhost) by access4.digex.net (8.6.12/8.6.12) id EAA07279 ; for ; Tue, 17 Oct 1995 04:06:12 -0400
  7. Date: Tue, 17 Oct 1995 04:06:11 -0400 (EDT)
  8. From: Ernie Wright <erniew@access.digex.net>
  9. X-Sender: erniew@access4.digex.net
  10. To: lightwave@mail.webcom.com
  11. Subject: Re: Morphing magic - NOT!?!?
  12. In-Reply-To: <s0827ec3.082@novell.com>
  13. Message-Id: <Pine.SUN.3.91.951017014737.28980A-100000@access1.digex.net>
  14. Mime-Version: 1.0
  15. Content-Type: TEXT/PLAIN; charset=US-ASCII
  16. Sender: owner-lightwave@mail.webcom.com
  17. Precedence: bulk
  18.  
  19. Mathew Mower wrote:
  20.  
  21. > Why is it that LW requires exact point correspondence for object
  22. > morphs?
  23. > I'm sure that I have seen other programs that allow arbitrary object
  24. > morphs (at least I did see cubes to spheres).  Is this a limitation
  25. > for all packages or just LW.
  26.  
  27. A lot could be said about this, but the short answer is that it's a 
  28. limitation of 3D in general.
  29.  
  30. The cubes to spheres morph was probably modeled as a superellipsoid:
  31.  
  32.    pow( pow( x/a, n2 ) + pow( y/b, n2 ), n1/n2 ) + pow( z/c, n1 ) - 1
  33.  
  34. where pow( x, n ) is the C function that raises x to the n power.
  35.  
  36. The parameters n1 and n2 are sometimes called bulge factors.  As you
  37. vary them, the shape goes from a rounded box (n1 and n2 > 10.0 or so)
  38. to a sphere (n1 = n2 = 2.0) to an octahedron (1.0) to sort of a six-
  39. pointed star shape.  There are also superhyperboloids (of one and two 
  40. sheets) and supertorii.  As a group they're called superquadrics.
  41.  
  42. The morph is possible because the shape can be completely described by
  43. a single, continuous function.  This is the analytic equivalent of two
  44. polygon-based shapes having the same number of points.  The only good
  45. model representation for completely general morphing is voxels, but
  46. the use of these on a day-to-day basis is still a decade away at least.
  47.  
  48. - Ernie
  49.  
  50. --
  51. Ernie Wright <erniew@access.digex.net> sent this message.
  52. To Post a Message           : lightwave@webcom.com
  53. Un/Subscription Requests To : lightwave-request@webcom.com
  54. (DIGEST)                 or : lightwave-digest-request@webcom.com
  55. Administrative Items To     : owner-lightwave@webcom.com